package com.finance.cooperate.dao.entity.primary;

import com.finance.cooperate.dao.support.pojo.BaseVO;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName DeviceInfo
 * @Description 用户设备相关信息
 * @Author shen
 * @Date 2023/8/6 11:25
 * @Modify ...
 */
@Entity
@Table(name = "p_user_device")
@Data
public class Device extends BaseVO {

    private static final long serialVersionUID = 3741992836617458286L;

    // ID
    @Id
    @Column(name = "id")
    private Long id;

    // 用户Id
    @Column(name = "user_id")
    private String userId;

    // 设备Id
    @Column(name = "device_id")
    private String deviceId;

    // 设备厂商
    @Column(name = "device_brand")
    private String deviceBrand;

    // 设备型号
    @Column(name = "device_model")
    private String deviceModel;

    // 运营商
    @Column(name = "operator")
    private String operator;

    // 安卓版本
    @Column(name = "android_version")
    private String androidVersion;


    // 手机总存储空间
    @Column(name = "total_storage_size")
    private String totalStorageSize;

    // 手机可用存储空间
    @Column(name = "can_use_storage_size")
    private String canUseStorageSize;

    // 时区
    @Column(name = "time_zone")
    private String timeZone;

    // 国家
    @Column(name = "country")
    private String country;

    // CPU数量
    @Column(name = "cpu_num")
    private Integer cpuNum;

    // 手机分辨率
    @Column(name = "resolution")
    private String resolution;

    // ipv4地址
    @Column(name = "ipv4_address")
    private String ipv4Address;

    // 网络类型(5g、wifi...)
    @Column(name = "network_type")
    private String networkType;

    // 是否是模拟器(0:否，1：是)
    @Column(name = "is_emulator")
    private Integer isEmulator;

    // mac地址
    @Column(name = "mac_address")
    private String macAddress;

    // 手机内存大小
    @Column(name = "total_memory_size")
    private String totalMemorySize;

    // SD卡总存储空间
    @Column(name = "sd_total_size")
    private String sdTotalSize;

    // SD卡可用存储空间
    @Column(name = "sd_can_use_size")
    private String sdCanUseSize;

    // 硬件信息
    @Column(name = "hardware")
    private String hardware;


    // 创建时间
    @Column(name = "create_time")
    private Date createTime;


}
